package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.pojo.MallUser;
import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.vo.UserIndexOuterVO;
import com.cskaoyan.bean.vo.UserIndexVO;
import com.cskaoyan.service.WxUserIndexService;
import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Chunlai
 * @description:
 * @time: 2021/7/11 21:18
 */
@RestController
@RequestMapping("wx/user")
public class UserIndexController {
    @Autowired
    WxUserIndexService wxUserIndexService;

    @GetMapping("index")
    public BaseRespVo index(){
        UserIndexOuterVO userIndexOuterVO = wxUserIndexService.queryordercount();
        return BaseRespVo.ok(userIndexOuterVO);
    }

}